$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'test/unit'
require 'testcase'
require 'testcasedoc'

class Testcase < Test::Unit::TestCase

  def test_create_step_list_without_snippet
    tc = LWA::TestCaseDoc.new("sample_testcase.xml").get_case(3)
    assert_equal 6, tc.create_step_list.length
  end

  def test_create_step_list
    tc = LWA::TestCaseDoc.new("sample_testcase.xml").get_case(4)
    assert_equal 12, tc.create_step_list.length
  end

end
